package com.acwebsitedesign.uRateDrugs.domain;

import java.util.List;

import org.springframework.security.access.annotation.Secured;


public interface DrugService {
	
	List<Drug> getDrugByName(String name);
	List<Drug> getDrugByAlias(String name);
	List<Drug> getDrugLike(String name);
	List<Drug> getDrugById(int id);
	@Secured("ROLE_SAVE_DRUG")
	void saveDrug(Drug drug);
	@Secured("ROLE_REMOVE_DRUG")
	void removeDrugById(int id);
	@Secured("ROLE_REMOVE_DRUG")
	void removeDrugByName(String name);
	@Secured("ROLE_SAVE_DRUG")
	void saveDrugAlias(Drug drug, String alias);
}
